package com.lanhe.order.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.lanhe.order.domain.LhOrdersQingchuangLog;
import com.lanhe.order.mapper.LhOrdersQingchuangLogMapper;
import com.lanhe.order.service.ILhOrdersQingchuangLogService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * (LhOrdersQingchuangLog)表服务实现类
 *
 * @author zhanggl
 * @since 2023-12-20 22:33:41
 */
@Service
public class LhOrdersQingchuangLogServiceImpl extends ServiceImpl<LhOrdersQingchuangLogMapper, LhOrdersQingchuangLog> implements ILhOrdersQingchuangLogService {

	@Autowired
	private LhOrdersQingchuangLogMapper  ordersQingchuangLogMapper;

	/**
	 * 添加日志
	 *
	 * @param qingchuangLog 实体
	 * @return com.lanhe.order.domain.LhOrdersQingchuangLog
	 * @author zhanggl
	 * @date 2023/12/21
	 */
	@Override
	public LhOrdersQingchuangLog insertOrdersQingchuangLog(LhOrdersQingchuangLog qingchuangLog) {
		ordersQingchuangLogMapper.insert(qingchuangLog);
		return qingchuangLog;
	}

	/**
	 * 更新日志
	 *
	 * @param orderLog 实体
	 * @author zhanggl
	 * @date 2023/12/21
	 */
	@Override
	public int updateHandleStatus(LhOrdersQingchuangLog orderLog) {
		return ordersQingchuangLogMapper.updateById(orderLog);
	}
}

